package com.wk.code.wkserver.utils;

import com.wk.code.wkserver.constant.NumberConstant;
import springfox.documentation.builders.ApiListingBuilder;

/**
 * @author wq
 * @date 2021-08-16 21:39
 */
public class IdWorkUtils {

    public static String getDemandNo(String id) {
        int length = id.length();
        int total = 6;
        StringBuilder builder = new StringBuilder();
        for (int i = 0; i < total - length; i++) {
            builder.append(NumberConstant.ZERO);
        }
        builder.append(id);
        return builder.toString();
    }

}
